import Vue from 'vue';

export const showAvatar = (params: any) => {
    return Vue.prototype.$axios.get(`/media/api/avatar`, params);
}

export const getNavSystem = (params: any) => {
    return Vue.prototype.$axios.get('/system/api/initsystem', params);
}

export const loadNotReadList = (params: any) => {
    return Vue.prototype.$axios.get('/system/api/notice/loadnotreadlist', params);
}

export const loadSecurityStrictMode = (params: any) => {
    return Vue.prototype.$axios.get('/system/api//static/security', params);
}

export const getInitSystemByUrl = (params: any) => {
    return Vue.prototype.$axios.get('/system/api/info/getinitsystembyurl', params);
}

export const initsystemresource = (params: any) => {
    return Vue.prototype.$axios.get('/system/api/initsystemresource', params);
}

export const loadConfigDetail = (params: any) => {
    return Vue.prototype.$axios.get('/custom/api/config/load', params);
}

export const loadTaskListGroup = (params: any) => {
    return Vue.prototype.$axios.get('/custom/api/config/loadtasklistgroup', params);
}

export const listReports = (params: any) => {
    return Vue.prototype.$axios.get(`/report/api/statis/list`, params);
}

export const getDate = (url: string, params: any) => {
    return Vue.prototype.$axios.get(`${url}`, params);
}

/** 获取待办信息 */
export const getTodoListMessage = () => {
    return Vue.prototype.$axios.get("custom/api/tasklist/searchMessage");
}

/** 业务资料查询类别接口 */
export const getResourceTypes = () => {
    return Vue.prototype.$axios.get("/media/api/getResourceTypes");
}

// node测试获取list数据
export const getList = (params: any) => {
    return Vue.prototype.$axios.get(`/list`, params);
}

